June 26, 2020
After installing python and Jupyter Notebook, now start your Jupyter notebook from the terminal which runs in port 8888 in the localhost. Now lets start with python programming.
import os
import pandas as pd
import numpy as np
import matplotlib as mlt
We have to call inbuilt functions using the libraries
import os
os.chdir(“/Users/mac/Desktop/new/Python”) /Set Dir
os.getcwd() - Get current working Dir
Note:- Shift+Enter to run your commands
When i tried to import pandas library, i got an error ” No modules named pandas” Which i fixed by installing pandas under bin, before importing it, and below is the command.
pip install pandas //Installing pandas
Some math calculations using library called math.
It is same like other programming languages, only few syntax gets varied. But its very easy to learn. Check some basic easy defining and calling functions.
Used int, and str as passing parameters. You can use any variables, using the same syntax.
There are more and more basic commands , From next post, we will start to learn commands related to DataScience like loading csv, excel files and read/write files.